package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.AnswerSessionGetTask.AnswerSessionGetRequest;
import com.smiier.skin.net.AnswerSessionGetTask.AnswerSessionGetResponse;
import com.smiier.skin.net.entity.AnswerSession;
import com.smiier.skin.util.GlobalSettings;

/**
 * 获取会话（注意获取完毕后 需要将接收方uid为当前用户的数据 调用“确认获取会话”接口 进行确认）
 * 
 * @author 杨文华
 * 
 */
public class AnswerSessionGetTask extends
		NetTask<AnswerSessionGetRequest, AnswerSessionGetResponse> {

	public static class AnswerSessionGetRequest extends ORequest {
		public ArrayList<Long> qids;
		public String startid;
		public int pagesize;
		public String token;
		public int Is_New = GlobalSettings.IS_FALSE;
		public String appname = Constant.APP_NAME;
	}

	public static class AnswerSessionGetResponse extends OResponse {
		public AnswerSession Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Answer.Session.Get";
		mRequestMethod = METHOD_GET;
	}

}
